<script src="http://open.web.meitu.com/sources/xiuxiu.js" type="text/javascript"></script>
<script type="text/javascript">
window.onload=function(){
  /*第1个参数是加载编辑器div容器，第2个参数是编辑器类型，第3个参数是div容器宽，第4个参数是div容器高*/
  xiuxiu.embedSWF("altContent",5,"100%","440px");
  //修改为您自己的图片上传接口
  xiuxiu.setUploadURL("http://127.0.0.1{:U('home/setting/face')}");
  xiuxiu.setUploadType(2);
  xiuxiu.setUploadDataFieldName("upload_file");
  xiuxiu.onInit = function ()
  {
    xiuxiu.loadPhoto("http://127.0.0.1/__ROOT__/{$Think.session.face}");//修改为要处理的图片url
  }
  xiuxiu.onUploadResponse = function (data)
  {
    //alert("上传响应" + data); 可以开启调试
  }
}
</script>


<import type='css' file="Main.Css.user-setting" />	
<div class="aw-container-wrap">
	<div class="container">
		<div class="row">
			<div class="aw-content-wrap clearfix">
				<div class="aw-user-setting">
					<div class="tabbable">
						<ul class="nav nav-tabs aw-nav-tabs active">
							<li><a href="{:U('home/setting/verify')}">申请认证</a></li>
							<li><a href="{:U('home/setting/security')}">安全设置</a></li>
							<li class="active"><a href="{:U('home/setting/face')}">头像上传</a></li>
							<li><a href="{:U('home/setting/profile')}">基本资料</a></li>
							
							<h2><i class="icon icon-setting"></i> 用户设置</h2>
						</ul>
					</div>
					
					<div class="tab-content clearfix">

						<div id="altContent">
							
						</div>

					</div>
				</div>
			</div>
		</div>
	</div>
</div>
